package com.study.design.model.behaviorPattern.observer.j2se;

import java.util.Observable;
import java.util.Observer;

public class MyObserver implements Observer {
	
	private int myState ;

	@Override
	public void update(Observable o, Object arg) {
		myState = ((ConcreteSubject) o).getState() ;
	}

	public int getMyState() {
		return myState;
	}

	public void setMyState(int myState) {
		this.myState = myState;
	}
	
}
